<?php
/**
 * Created by PhpStorm.
 * User: qttx
 * Date: 2019/5/31
 * Time: 9:17
 */
namespace app\admin\controller;

use app\admin\model\BalabceLogModel;

class BalanceLog extends BaseController
{
    public function __construct()
    {
        parent::__construct();
        $this->balancelog = new BalabceLogModel();
    }
    /**
     * 会员流水日志
    */
    public function assets_log()
    {
        $list = $this->balancelog->assetslog();
        $page = $list->render();
        $count = count($list);
        $this->assign('list',$list);
        $this->assign('page',$page);
        $this->assign('count',$count);
        return view('balance/assetslog');
    }
    /**
     * 会员流水多删
    */
    public function assets_dell()
    {
        $res = $this->balancelog->assets_dell();
        if($res)
        {
            return ['code'=>'1','message'=>'删除成功'];
        }else{
            return ['code'=>'0','message'=>'删除失败'];
        }
    }
}